extends "DongHuaPlayerFather.gd"

var executer

func play(donghua):
	if donghua==null:
		emit_signal("complete")
		return
	executer=load("res://Executer/"+donghua.action+".gd").new()
	donghua.erase("action")
	var keyList=donghua.keys()
	for key in keyList:
		executer.set(key,donghua[key])
	executer.connect("complete",self,"onComplete",[],4)
	executer.play()

	
func onComplete():
	
	
	emit_signal("complete")